home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9201 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: newshost.lanl.gov!tanmoy
  2. From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
  3. Newsgroups: comp.arch.arithmetic,comp.lang.c,comp.lang.c++
  4. Subject: Re: Access carry flag from C
  5. Date: 28 Feb 1996 16:10:41 GMT
  6. Organization: Los Alamos National Laboratory
  7. Message-ID: <TANMOY.96Feb28091041@qcd.lanl.gov>
  8. References: <Dn1C9z.DGv.0.net@indra.com> <ARTHUR.96Feb20143404@gold.Smallworld.co.uk>
  9.     <824853272snz@genesis.demon.co.uk> <4gqj0d$d6p@airdmhor.gen.nz>
  10.     <825377932snz@genesis.demon.co.uk>
  11.     <slrn4j7v4c.l00.srkumar@shell.monmouth.com>
  12. NNTP-Posting-Host: qcd.lanl.gov
  13. Mime-Version: 1.0
  14. Content-Type: text
  15. In-reply-to: srkumar@shell.monmouth.com's message of 28 Feb 1996 06:56:12 GMT
  16.  
  17. In article <slrn4j7v4c.l00.srkumar@shell.monmouth.com>
  18. srkumar@shell.monmouth.com (Senthil Kumar) writes:
  19. <snip>
  20. SK: On Mon, 26 Feb 96 23:38:52 GMT,
  21. SK: Lawrence Kirby <fred@genesis.demon.co.uk> wrote:
  22. SK: 
  23. SK: > No, given:
  24. SK: > 
  25. SK: >    (expr1) ? expr2 : (expr3)
  26. SK: > 
  27. SK: > [...]
  28. SK: > 
  29. SK: > You probably noticed that I didn't put parentheses around expr2. Can you
  30. SK: > see why they are necessary around expr1 and expr3 but not here?
  31. (This does 
  32. SK: > test understanding of expression parsing quite deeply).
  33. SK: > 
  34. SK: 
  35. SK: Can anyone explain this?
  36.  
  37. One understands better by thinking than by having things explained :-)
  38.  
  39. Can you think of some `expr2' such that putting a parantheses around
  40. it in the above expression would make a difference? Can you think of
  41. some `expr1' and some `expr3' where deleteing the parentheses would
  42. make a difference? Can you now see what was being said?
  43.  
  44. Of course, if you are asking how this tests the understanding of
  45. expression parsing quite deeply, I don;t have an answer :-)
  46.  
  47. Cheers
  48. Tanmoy
  49. --
  50. tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
  51. Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
  52. Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
  53. <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
  54. internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
  55. fax: 1 (505) 665 3003   voice: 1 (505) 665 4733    [ Home: 1 (505) 662 5596 ]
  56.